Write a Python program that implements the Shell Sort algorithm to sort an array of integers with increasing values. The program should take user input for the array and print out the sorted array. The Shell Sort algorithm should be implemented using the gap sequence of (n/2), (n/4), (n/8), ... 1, where n is the length of the array. The program should also handle invalid inputs such as non-integer elements in the array or an empty array. The code should be well-documented with clear variable names and follow the PEP 8 style guide for Python code.
This prompt doesn't seem malicious.