- Fixed a deadlock produced when finishing client or server.
- The worker threads in both client and server now stop when an exception is thrown, instead of keeping running.