00' Outback

Weird thing just started. Went to turn engine off after running and it wouldnt shut off. It finally did but sputtered then shut off, any ideas???? Is this a fuel issue, filter??