perform file clean up on background thread