Error handling and input dialogs tweaks.