Added default exception handler for printing exceptions that happen in other threads