Cleaning up file-operation callback