Thanks. Doing this instead now:
		rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout, ::Rex::ConnectionError, ::Errno::EPIPE
		      	res = false
			print_error("HTTP Connection Failed, Aborting")
			return :abort