swiftrepl: initialize connection before use

Initialize connection to None as it might not be defined in all
branches. While at it, also fix the re-raise to be "raise", as in Python
you can't re-raise an exception by name.

Change-Id: Ie6f347eae9470f1602d373b3277ffe7b14000b3b