WINDOWS - added clipboard error handling