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.
Add travis config.
Merge pull request #1 from methane/travis

Add travis config.