Janitor calls callback if it inspects the error.

Closes #304.