Gui 1290 fixed error handling for key generation