Fixed a small bug in the DIE() error exit code where curses was not being
properly shut down before displaying fatal error messages, leaving the terminal
in an undesirable state.