Comets close out season with a victory