Add EOS handling

Just quit on EOS for now