Catch exceptions in editor.hide (related to issue 6938)

https://code.google.com/p/fbug/issues/detail?id=6938