Made log_open() static and made it die with an error if the