Added disconnect option to prevent connection leak. Added preferredAuthentications option to speed up connection.