Added a run-time limit

There's a memory leak somewhere in here and I don't have time to track
it down, especially since for some reason my main development system
won't produce heap profiles anymore.