added commandline option to quit after X cycles

Because someone seems to be unable to cherry-pick from incoming pull requests
I'm wondering if it would be beneficial to return another "more special" value that allows to distinguish watch dog from 6502 programs returning with an error. I must admit that I have no good idea about the actual value.