there is no configuration for closing a SO automatically. There must be some workflow or script in action. You cannot close a SO unless it must be in one these following statuses
1. Pending fulfillment
2. Partially fulfilled
3. Pending billing
Please check for script or workflow