Added a sleep after sync as umount did not always succeed