[runtime] Remove dependency on openlog and closelog