reliability / debug fixes for inter-thread comms.