Remove unnecessary mutexes.
Handle any client exception.