Added close method call before creating new entitymanager