Connect blocking and global cleanup.