add debugging back in; fix FIN_WAIT_2 problem