Add logger and exception handler