The handling of coredumps has changed on Mojave, so you cannot use "otool -c" as you did on older macOS versions. Instead you open the Terminal and run the following command:
lldb -c /cores/core.12345
where 12345 needs to be replaced by the actual filename of your coredump file.
When lldb has started up, you'll get an (lldb) prompt, where you enter the ...
I think the Energy Saver suggestion is a good place to start:
» System Preferences » Energy Saver » Schedule and set it for, say, 30 minutes before you want to leave for work.
However, I would not schedule it to go back to sleep unless you know that it has actually succeeded in ejecting the disk. Otherwise you might have the disk not eject for some ...
You can schedule your MacBook to wake before your scheduled disk eject job and then go back to sleep afterward (something like wake up at 5:00, sleep at 5:05 and your eject job in the middle).
from Apple support :
From the Apple menu, choose System Preferences, then click Energy Saver.
Click the Schedule button, then use the checkboxes and pop-up menus to ...