/**
  * Cancel the experiment with the given ID
  * @param $expId
  */
 public static function cancel_experiment($expId)
 {
     try {
         Airavata::terminateExperiment(Session::get('authz-token'), $expId, Config::get('pga_config.airavata')["gateway-id"]);
         CommonUtilities::print_success_message("Experiment canceled!");
     } catch (InvalidRequestException $ire) {
         CommonUtilities::print_error_message('<p>There was a problem canceling the experiment.
         Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>InvalidRequestException: ' . $ire->getMessage() . '</p>');
     } catch (ExperimentNotFoundException $enf) {
         CommonUtilities::print_error_message('<p>There was a problem canceling the experiment.
         Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>ExperimentNotFoundException: ' . $enf->getMessage() . '</p>');
     } catch (AiravataClientException $ace) {
         CommonUtilities::print_error_message('<p>There was a problem canceling the experiment.
         Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>AiravataClientException: ' . $ace->getMessage() . '</p>');
     } catch (AiravataSystemException $ase) {
         CommonUtilities::print_error_message('<p>There was a problem canceling the experiment.
         Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>AiravataSystemException: ' . $ase->getMessage() . '</p>');
     } catch (TTransportException $tte) {
         CommonUtilities::print_error_message('<p>There was a problem canceling the experiment.
         Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>TTransportException: ' . $tte->getMessage() . '</p>');
     } catch (Exception $e) {
         CommonUtilities::print_error_message('<p>There was a problem canceling the experiment.
         Please try again later or submit a bug report using the link in the Help menu.</p>' . '<p>Exception: ' . $e->getMessage() . '</p>');
     }
 }