Added shut down event
Revert "Added shut down event"

This reverts commit a1c8c4078b726b2576912c840fd6da0ebc33a026.
Added shut down event