Made sure copy callback isn't called twice when an error occurs. #18