ioexception loop in scheduler