handle_attach in model, OrdersController cleanup