Unset/free also windows user function, finalizing the connection