Fixed a small bug in the DIE() error exit code.

Curses was not being properly shut down before displaying fatal error messages, leaving the terminal
in an undesirable state.