handle error during SSL read or write
shutdown SSL connection before reconnect