fix a race condition with sockets when mpd password is invalid