gracefully handle process exit
separate conn_timeout for tcp connection timeout