There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Save exception message to a property
In many of the functions, it would be helpful to save the exception error message. ie in the try catch: LastErrorText=ex.message.
That way, when a function returns false due to an error, i can read the LastErrorText property to give some sort of feeedback to the user as to why it failed.