There are several rules for filling up a boat with gas.
1) everyone off the boat.
2) no smoking
3) closed all hatches
4) turn off bilge blower
5) make sure gas nozzle is in gas tank fill, not a rod holder or water inlet or pump out.
6) when done open hatches and turn on bilge blower