http: call close(true) on error