BUG-731: Raw RuntimeExceptions should not be thrown

They really tell us very little -- so convert them to
IllegalStateExceptions where appropriate.

Change-Id: I885570a0a0ae7972b2227dcd08bf83dcb9f86c5a
Signed-off-by: Robert Varga <rovarga@cisco.com>