Prevent jmx connection leaks from happenning in case of connection failures