Properly exit error screen when hitting cancel.

Fixes #3351.
Merge pull request #5209 from unknownbrackets/ui-tweaks

Properly exit error screen when hitting cancel