Re-throw errors to keep promise in rejected state, so that the web server is not started if an error has been thrown