Magplug
Actually, having performed this procedure quite recently, we waited until all ground equipment and personnel were clear of the aircraft before selecting gear up. Even the crew were kept in the terminal building. It caused a delay but we considered it prudent to do so. It can be difficult sometimes trying to explain to operators that this is the correct way to behave and it can mean the LAE in charge has to be quite firm with airline station managers, MOCs and airport duty managers that need the stand ASAP. Pressure for an on time departure should never trump safety.