Well the door won't be locked at that point! When we refuel whilst boarding we are generally in contact with the ground crew either via the headset or visually.
The emergency responders may recommend that passengers and crew stay on board but if the captain chooses to evacuate then that's what will happen.