rescue StopIteration only.
Merge pull request #1886 from iij/pr-kernel-loop-rescue-error

Kernel.loop should not catch StandardError.