Fixed a bug that caused mobile API system to crash when turning it off while a client was conencted

This was caused by a reentrant modification of the client collection