removed __del__(self) to retrieve output file