Close all EM's to avoid connection pool exhaustion