Prevent logging during keyboard interrupts
Move error preamble and postamble to settings