Catch more errors from clipboard access on Windows
Merge pull request #5869 from takluyver/win32clipboard-catch-more-errs

Catch more errors from clipboard access on Windows