Web: Close the transport when logging out.

We want to open a new one when logging in again the next time.