removed extra commented lines (from old code). Issue has been reintroduced, server doesnt issue done command when it stops.