Clean up HTTP handler