Shaft seal for motor