Added the same debug as linux and clear the notification on shutdown