Fix problem with registry redirection

We have to end the registry redirection after running the tests,
otherwise the tests might start to fail when we run them
multiple times without restarting NUnit GUI.

Change-Id: I001eaabf9b8995d162e18fe1087ee31c46ac99bc