We should add support for startup and shutdown hooks so that user can execute custom code at service startup and shutdown.