Raise NetworkError when ScriptRunner fails to connect.

Change-Id: Iff96809f44ce0dcd92b28dbebadffa4000a5b4b3
Fixes: rhbz#908838