Futz with GC during exceptions

Fixes issue 164
Make setting proxy optional