use the after hook to make sure to only cleanup the local file once
Merge pull request #2 from tobowers/feature/threadsafe-clean

use the after hook to make sure to only cleanup the local file once