OnStartup and OnShutdown annotations