Correct shuttingDown event