logging, close FD, message format