Modified something. MPD should now stop automaticaly when there is no connection on port 8000. Not tested now.