The "failed" signal is called when the client has failed communication or the connection has been knowingly closed.