Slight improvement to catching of ^c and flushing of server communication. Servers still dies sometimes