Updated Server class's 'disconnect' function to handle removing a client instead of the 'listen' function doing so, since it's threading causes some problems.