regs #147 - refactored gcs closing to be able to do emergency close from gcs_recv_thread
Merge branch 'gh147' into gh71
refs #147 fixed assertions