Added session#disconnect(). Changed crate_id attribute to crate_name.