don't hang when swig errors out