Add error handling for disconnection from resource manager