Crashes are now handled gracefully

When the program crashes while the password prompt was still on, when
not handled correctly, the stdin echo will remain off. Nothing that the
user types will ever show on the screen, until they restart. This commit
prevents that.