Writes frame to all opened endpoints.
If all endpoints write fails, it throws the exception of the first endpoint that failed.