Add try catch around things that can still happen when disconnected.