Fix #1526 by rescuing if log append fails

@Kartones CR this, please. Covers strange edge cases like #1526 (couldn't reproduce in local, don't know why).