public void AbortProgram()
 {
     log.Debug("AbortProgram()");
     //abort the active program if it exists
     if (ActiveProgram != null)
     {
         ActiveProgram.Stop();
         log.DebugFormat("Program {0} aborted", ActiveProgram.Name);
         DataService.CreateEvent(EventTypes.Application, string.Format("Program {0} aborted", ActiveProgram.Name), device.Id);
         device.State  = DeviceState.Standby;
         ActiveProgram = null;
         ReportStatus();
     }
 }