Reenable travis builds.
Handle exceptions better