Issue # 365 deleting temp file before and after exporting process.

This Issue is to delete temp file before and after exporting process.