Log traceback on unexpected errors

Change-Id: I828f187ea594fdca993068463542180158695bd3