Changed the error message on sending when connection is disconnected

#2386