Added checks for class preDestroy and added mail fro calendar event.