Exception handle for tempfile added