Change Fatal/Panic to CRITICAL level, Print to DEBUG, gofmt
adding timeout parameter to socket writer