Made trap restore terminal incase Ctrl+C was hit while read was waiting for user input