Fixed copy/paste bug (thanks to Gerard Patel).

diff --git a/scheduler/thread.c b/scheduler/thread.c
index afc1a11..7aca5d2 100644
--- a/scheduler/thread.c
+++ b/scheduler/thread.c
@@ -115,8 +115,8 @@
     /* Free the associated memory */
 
     if (teb->socket != -1) close( teb->socket );
-    close( NtCurrentTeb()->request_fd );
-    close( NtCurrentTeb()->reply_fd );
+    close( teb->request_fd );
+    close( teb->reply_fd );
     if (teb->stack_sel) FreeSelector16( teb->stack_sel );
     FreeSelector16( teb->teb_sel );
     if (teb->buffer) munmap( (void *)teb->buffer,