removed em.close()