Fix logging problem w. interruptions