Graceful shutdown.
Fix a bug on events callback.
Disable search.