Added a background monitoring thread to check connected servers for errors and reconnect if they are present.