/* Returns true if connected, false otherwise, 
 * nil if something really crazy happened. 
 */
static VALUE _sh_connectedp(VALUE self) {