desktop-dock use non-portable hack to exit gracefuly on signal