Add fail safe on doctrine to allow command execution without db