adding ability to close an engine