First thing I would be doing if all my fish and corals was OK then did a water change and fish started to die and corals started closing up is check whatever I use to check my salinity and make sure calibrated ,incase it's off and I dramatically changed the salinity with the water change ,and dramatically changing salinity would also affect other parameters I read often.
Then I would be thinking stuff like how old is my tank/ sandbed and did I disturb sandbed to much possibly releasing " hydrogen sulphide " I think it is ( maybe wrong )
Then I would be trying to rule out stuff like did I have any contaminants on my hands or it dropped in water change vessel etc.
As said above if remove all water ( 100% water change) beneficial bacteria on/ in the rocks/ sand and little in the water apparently ) but that's a little drastic thing to do unless know reason why you want to do 100% wc.
Good advice in posts above.
Hope you get to bottom if why it happened .
But just thinking you did wc last Saturday and posting now Tuesday night, did they start dying Saturday/ Sunday or few days later ?
I see jay who resident fish diesese expert say if fish are affected but not corals and cuc then points to fish diesese but if all tank affected then usually points to problem with parameters / water etc.
Your problem is fish dying and corals affected by closing up but cuc unaffected .
Anyway good luck and hope you figure it out