Check if connection is alive pre read/write.

[ #141 ]