Refactored process log command, prevent weird messages due to cleanup of stale deployments