No next tick main

This fixes #4856, speeds up startup by a miniscule amount, and fixes a `FIXME` comment that's been around for about a year now.

Don't nextTick the main module, and set exit codes in a way so that we can get some info out of them.