improve handling of negative welcome response upon connection