174175176177178179180181182183184
} catch (Exception e) { throw new RuntimeException("Failed to " + action + " agent in process " + PID, e); } finally { if (vm != null) { try { vmHandler.detachAgent(vm); } catch (Exception e) { // swallow this? } } }
226227228229230231232233234235236
agentUrl = checkAgentUrl(vm); } catch (Exception e) { // maybe log this } finally { try { vmHandler.detachAgent(vm); } catch (Exception e) { // log this } }