Added missing CloseHandle().