disconnect delete-range handler.
compile with debug flags.