Reduce scope of try-statements.

The only unknown is the users function, any other exceptions are bugs in
SQLite.jl and should be fixed not hidden away.