handle invalid_actor in sync send + anon_send_exit

this patch checks in anon_send_exit for invalid_actor and
turns it into a NOP if needed, sync_send throws
std::invalid_argument to have at least a defined behavior