fix closing hibernate c3p0 pool