issue #91: modifying mplayerinstance logic to wait for mplayer process to exit before killing the process