cli: send EOF on control socket disconnect
Since 4.0 now allows several simultaneous cli connections, this changeset allows notifying the client that the socket won't be used anymore even if the file descriptor isn't yet closed server-side.
This mimics VLC 3.x behavior.
Edited by Sergio Ammirata