Fixing flaky behavior on async callbacks.

Added test to demonstrate behavior. This bug happens when attempting to copy files to a directory that has not been emptied of files (though not consistently).