[SPARK-2312] Logging Unhandled messages

The  previous solution has changed based on https://github.com/apache/spark/pull/2048 discussions.