I can't seem to figure it out too, well didnt look close enough yet, well here's case numbers.
case 50235:
case 50253:
case 51005:
case 51013:
case 51023:
case 51031:
case 51039:
I think it remove item method is wrong.
It makes it take items off , and when player is already (in lumby) , it stops.
and it wasnt fast enough to drop all items on floor.
I suggest change remove(item,r). to removeItem(item,r) some thing like that. to not just take it off , to remove it. because erm i saw items (I lost) on floor.
Only suggestion , dft back up.