Raise NetworkError when ScriptRunner fails to connect.

Change-Id: I1d36685aa9b9035a8812908a60ad59a4d33de366
Fixes: rhbz#908838
Merge "Raise NetworkError when ScriptRunner fails to connect."