If you are on I-485 stage, when you leave US without approved AP, you would automatically abandon the pending I-485, which you definitely don't want that happen.