Made CopyToClipboard routine close automatically