Fixed two issues: #10 and #14.

Also fixed an issue with multiple logger handlers being assigned to each client.