Add travis configuration.
Fix exception destructor.