added destructor to QueueMonitor and added comments