If you select Exit all positions, you shall not face any issues.
However, if you're unsure about it, then you can exit your positions manually by selecting one by one position. The position which you selected first will be squared-off first.
Hope this helps!