added destroyCommand to factory to keep symmetry with new/delete of commands