Closing the eyes during prayer is not disliked if it is done to avoid distractions and maintain focus (Khushu').

Disliked Acts in Prayer (مكروهات الصلاة) Part 1: Physical Actions