Handle the {error, close} EXIT.