First shot at transactions
Check if the java_connecdtion is closed before acquiring