proxy.start();
proxy.onEvent(queueSession, event);
workManager.scheduleWork(proxy, WorkManager.INDEFINITE, null, null);
}
} catch (Exception e) {
<BUG>if (proxy != null) {
try {</BUG>
proxyPool.returnObject(proxy);
} catch (Exception e2) {
logger.info("Failed to return proxy to pool", e2);

proxy.start();
proxy.onEvent(queueSession, event);
workManager.scheduleWork(proxy, WorkManager.INDEFINITE, null, null);
}
} catch (Exception e) {
if (proxy != null && proxyPool!=null) {
try {
proxyPool.returnObject(proxy);
} catch (Exception e2) {
logger.info("Failed to return proxy to pool", e2);
