STORM-307: fixed IOException retry logic

Change-Id: Iffa4609ee9b8a0afbd437d2b2ee802cc83773a0a