Handle chaining properly. The old code somehow caused the chained handler to
be invoked twice. (#215)