Connection handling improvements.