Clean up the temporary file after the command completes