Fixing "Unknown error" message when user cancels.