Issue 4504: Errors from one window/tab leak into others

This is the second page of issue 4504. Errors from the first page should not leak into it.