print message on connect/disconnect