Stop the server process on dependency injection errors.

Otherwise the process would just hang and do nothing.