Convert fd to Session* where meaningful