Resolved by preventing the function to navigate to closing sequence