Handle exceptions in a more Elixir-y way