Remove keys on state shutdown
Added Client state and implemented state on/off protocol handlers