added cleanup callback to room scrips (remove code patching, etc)