nmci.lib: fix pexpect logs
If pexpect proc exited cleanly before it was embedded, then .expect()
was never called and logfile remained empty.
Fix this by calling .expect(EOF)
on ended process, which should be
safe. Also condition was buggy, as it killed with 9 if EOF, not if
TIMEOUT.
Closes #7 (closed)