Double potential solution for not automatically closing docks on OSX