magit: auto-close commit window left behind

From: http://git.io/rPBE0Q
magit: stop flash of 'invalid' style in commit

From: http://git.io/rPBE0