Implemented tray quit action.