Chuck attach and detach