Add a sleep to hopefully resolve a file lock / in use issue