close order method