Remove handlers on context destruction.