update: Added bot shutdown event handler

* Added bot shutdown event handler to handle shutdown events gracefully
  and thus sync shelves nicely.

Signed-off-by: mr.Shu <mr@shu.io>