Don't rely on scope inheritance in the connection handler.