invoke callback with an error if the connection is closed when publishin...

if the connection to NSQD was lost, publishing a message didn't return an error in the callback.

added a verification that the connection is also NOT closed when publishing a message.