fixed missing () on def closeCleanly