Do not release capture before sending WM_NCDESTROY message, update the
tests to reflect that.

3 files changed