Use `exceptions` package for exception safety
Add Travis CI