onError callback to fs.rename