Separate client handling and socket's operations.