Fixes issue that logread wasn't closing