When quiting a program it does not send 'q'. The following process qhould detect the pipe closure tio quit