Implement teardown on search route