Tab closing works a little bit better now, still not perfect.