Attempt to recover from dropped connections

A fix for #90