Fix ThreadAbortException in attribute editor