No. While it would be nice, there are just too many ways to abuse it. Correct me if I'm mistaken (back up with evidence), but there is no way to differentiate between pulling the cable and disconnecting. In my opinion, there should be an "Emergency Prayer" or "Emergency Food" slot. If you disconnect, it will automatically put on the selected prayer or eat the selected food. That way, you're using up the Prayer Points or Food you would have used anyway. (Maybe to prevent people from auto-eating by unplugging, the AI wouldn't be very smart. It would waste 1-5 HP for every piece of food, for example.)