I always set `static-only` via `defaults write com.apple.Dock`. Highly recommended...
Most set-defaults take effect the next time something is launched, and basically all of the things that affect the dock are only read at launch time.
Some apps just don't leave the dock.