Allow MarkdownHandlerFunc to return err.

Add a debug drop callback.