Had the same problem at cold start fixed by pumping primer and was told by Rockingham Nissan primer was likely culprit. Changed primer problem solved. Apparently it has a valve which when it fails causes fuel line to drain out into tank. Should mention primer now goes hard a lot quicker. (If you'll excuse the expression)
G'day guys and girls, mine has just started doing the shutdown after a few seconds in the past week or so but sometimes it just misses a beat and keep running everything else seems fine. It's a 2010 d40 st Thai build.