Add settings setter.
Handle client disconnection.