rem'd memory leaks in Open(). Still getting WinAPI errors.