resp not terminating route when inside template
I'm writing a fairly simple server that uses a MySQL back-end and outputs JSON. MySQL connections time out after a while so I added a try-except around it. But I wanted to do this for most my routes so I created a template which looks something like this:

```
template tryWithDbError(internal: untyped): untyped =
  try:
    internal
  except DbError as error:
    if db.errno == 2006: # Error code for timed out connection
      try:
        db = open("","","","") # Credentials redacted
        internal
      except DbError as error:
        echo "Database error while processing request($1): $2" % [$db.errno, error.msg]
        resp Http500, errorWrap "Database error while processing request($1): $2" % [$db.errno, error.msg]
    else:
      echo "Database error while processing request($1): $2" % [$db.errno, error.msg]
      resp Http500, errorWrap "Database error while processing request($1): $2" % [$db.errno, error.msg]
```

And it works great. But if I have code like this:
```
tryWithDbError:
  db.exec(sql"DROP TABLE bobbytables")
  resp Http200, "Dropped bobbytables"
resp Http404, "This part of the code should never be reached"
```
The server will respond with the Http404. It seems like Jester returns from the scope of the template when the resp is found and not the scope of the route as would be expected.