close JPA entity manager after each request