Modified the error message for sending data when connection is disconnected

#2386