Fix members initialization order
NetworkManager: polish createSession() code a bit