always open and close syslog otherwise messages won't be flushed immediately