Adding server startup and graceful shutdown