Moved out mpd client creation into each function to prevent socket:broken pupe error