handle copy error on mac os x