restart bot when it's encountered eof