OPENJPA-2440 close connection after not using it anymore this prevents leaks like the one reported by rmannibucau.