Added gracefull shutdowns and disconnecting event
When perform gracefull shutdowns disconnect is async