Very common. "Moosing." It isn't emission related, but a valve (Intake Air Control, IAC) that opens when the throttle body is shut. It gets dirty over time. There are 3 things you can try: 1) clean the IAC, 2) replace the IAC (this eventually worked for me after 1 failed), or 3)
Throttle Hang Fix .