Close the editor after translating or skipping last message

Change-Id: If3419ecdc4582c518379eea5aea780f6494c83cd