Shouldn't the logger be closed regardless?