Well, it is hard to say...it really depends on the tank and the octopus...some of them last through thick and thin, others give up the ghost quite easily.
Never is fun having a tank crash like that...all you can do is be prepared for the next time, by having supplies on hand...I would recommend calling your lfs and asking them if they can sell you water, that will speed up the water change aspect, as you won't have to wait for the salt to dissolve, etc...
good luck!!!!!