What happens if i close my long orders and the short option orders remain open in my positions?

Hi @Mavvy

At dhan, you will never face this issue. We have something called Hedge Break Alert.
Below is the link for more reference.