Fixed --clean arg implementation. Fixed bug where .close() was still being called before open()
--desugared flag