handling swamp commands with promises, removing PID file after system recovery (e.g. system restart)