Fix handling of error during server startup

Server should stop.