Fix lazy_connect, call handle_lazy_connect before checking session existence