Fix bug

Remove the old event listeners, so that the old BuildOutput is not called. Resulted in errors about destroyed TextEditor.