Answer:
Personally, I think the best thing to do is to get out of the way of those closest to the dying person and the person him/herself. It is, however, also important for you as a supportive individual to be around in case you are needed by family and friends. Is this the sort of answer you were looking for?