Misuse try-with-resources to mark connections as available