Optimised modal close