add printing exceptions to the console