print exception messages to console