Fixes issue #6 where no log would cause a crash