Allow NULL data to simulate connection refused.