Shutdown gracefully on startup error