[SPARK-2379] Fix the bug that streaming's receiver may fall into a dead loop

Can you also add reportError() so that this error gets reported to the driver? Its easier to debug when all the error gets reported to the driver.