log exceptions to console