input: fix exiting with signals

Quitting through SIGTERM etc. was accidentally ignored since commit
f5af5962 from today.