Attempt to reset terminal during normal exists and various other signals

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>