write out message while waiting for connecting to a server