So what you do is:
1. create a limit order
2. create 2 more conditional limit orders based on the limit order
a. condition is that original limit order is executed and cancel if one or the other closing orders is executed
This wouldn't work when you have multiple closing orders would it? Say I have two sell orders and they both have similar conditions but different numbers.
This may be different (unless I misunderstood your example), as I used bracket orders in the past which are defined (at least by IB) as a single limit order that after getting filled has 2 orders attached: one to exit at profit and another one to exit at stop loss.
https://www.interactivebrokers.com/en/index.php?f=583
So a bracket order is a single limit order and after it gets filled, then I create one exit order at profit/target, and another one as stop-loss order. I just don't use IB's bracket order feature anymore and send each order to IB separately when the price nears my targets.