Force disconnecting the device on protocol errors. Allow device to synchronize sending books so that calibre doesn't get too far ahead.
...
Merge branch 'master' of https://github.com/cbhaley/calibre