Client catches error when trying to send when not connecting.