Kill regex processing after 5 seconds if not complete.