Well while coming home from work today the check engine light, vsc trac light, and vsc off light all came on. So I went over to autozone to have the code pulled and it came up with a p0440 or gas cap not on tight. Thought that was funny but said ok and undid the cap and put it back on but the light was still on. The car still ran great and operated great but those three lights were still on. Went home and pulled the neg batery terminal to reset the code, wait 3 mins and reconect the terminal. I went to start the car and it starts fine goes up to 1k rpm but then drops all the way down and dies. I can press the gas pedal and it will rev up fine but whenever I let off the gas it wont idle and just dies. Any idea on sensors or is something up with the computer?