Fix timed detach of output view

`setTimeout` binds `this` to the global object. This gets around that.