keep a list of errors

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
when disconnected, fail any pending commands

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
don't let the failed commands make the test fail

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
test that reconnecting after a disconnect doesn't break the library

Signed-off-by: Tomas Neme <lacrymology@gmail.com>