Clean http request when the message was sent

- it will fix crash when the browser is closed