Fixed bug in the ID generator and now removes clients from the idgenerator too