Improved error handling for Buffer disconnections along with some tweaks to authentication to Buffer.