make closed after execution