fix crash after cancel software update with exit button