This happens because SSH won't exit if there are outstanding connections going through the tunnel/proxy.
If I quit the browser (close all windows), SSH exits normally. All TCP and X11 connections need to be closed before exiting the SSH session.
I found no options to change this, so I assume we can do nothing to prevent this behavior.