It is very likely to be the ignition module to test it use a spare spark plug any will do and when it stops connect the plug lead to the spare plug make certain the outer metal part of the plug is touching the engine. Now pull the start cord and see if there is a spark at the plug.
If no spark then it is the ignition module.
Richard
Richard Coulthard
June 2008