Alyssa/add wire support

We need to check the return value from this call.  It is an integer, and if it is non-zero we should raise an exception.