Improve error handling at HTTP server startup