Using JMSContext in try-with-resources