Added send_failure_fd to select statement and killed recv thread on error

The select() statement in networkRouter now checks for the send_failure_fd and kills the receive thread on error. The send thread still needs to be killed.