Fourteen-man Munster move back into the play-off positions in the URC as they hold on to beat an error-ridden Connacht 30-24 in Castlebar.