use context.ClearHandler middleware.

Fix #2.