Fixed: tasks/phoneRoomMapping never exits

The script tasks/phoneRoomMapping never exited fopr me. Probably one of the libraries ued in it blocks cleanup functions. I added a simple counter to check if we are completely done and then exit.