The top of all shafts shall be protected by a tight fence or railing, which may be provided with the necessary gates or bars to give access to the shaft, but such gates or bars shall be kept closed when access to the shaft is not necessary.
225 ILCS 710/45.47