adding missing GUI unlock/cleanup on error