Error out in case of exception such as pty - exited