Added a catch block for keep alive exceptions.

To do: raise events for exceptions occurring during read/write that
disconnect the session.