You do not wait the end of your threads.
You might use the following lines to wait the end of your 2 threads :
HANDLE handles[2];
handles[0]=myHandle;
handles[1]=myHandle2;
WaitForMultipleObjects(2,handles,TRUE,INFINITE);
CloseHandle(myHandle);
CloseHandle(myHandle2);