fix editor unload

Signed-off-by: Thibaud Arnault <thyb@oauth.io>