Better exception handling.

Binding traceback cause cyclic reference.
(see http://docs.python.org/2/library/sys.html#sys.exc_info )

Catch Exception but not BaseException.