Hackish solution to infinite loops in user-provided code.