Making a JMX connection with a timeout