http.py: Relies on IOStream's closed state instead of ourself.