Also need this to prevent double-shutdown.

That exit(0) before was skipping a lot of stuff..