Added exception handling on copy to clipboard

I have bad experiences with the Clipboard.SetText command.