Made the ejs.open and .close consistent