Catch a connection failure if you can't get the last error from shard.

https://github.com/mongoid/moped/pull/294 for 2.x. Should fix #280