fixes #555

When a client fails to authenticate, the client is not shut down correctly and its resources (e.g. threads) are not released.
Which eventually leads to an OutOfMemoryError.
Merge pull request #556 from pveentjer/fix/3.0/clientauthenticationfailure-and-thread-not-stopped

OOME fix when client not authenticated