Reopen log on prepare