EE attempted to retract a magnet carriage into place. The carriage did not fully retract as prompted. EE performed LOTO and opened the hatch to the magnet to then find the magnet half closed. EE attempted to maneuver the carriage to return it to an open position simultaneously the cylinder actuated closing the carriage on EE's right hand. EE suffered a contusion.