Adding commented-out code to timeout rather than hang forever