Perform checkout before assigning order status (#1044)