Use an early_quit function for shutting down when we have not successfully initialised that does not try to clean up.