There is an electric valve in the carb which cuts of petrol supply instantly when the ignition switch is turned off.
Its called primary idle cutoff solenoid.
Check if its connected and if it is then is it working?
Its behind the carb beside the electrical load idle up diaphragm.
its marked at No. 14 in the diagram posted by fas133.