renameio basically just does: Sync(), Close(), Rename(). This will be done here instead of using an external dependency