Listen for closed parts.
Don't listen for close part events.

It doesn't work. It might be that the editor part resource is already
disposed.
Refactor file.
Implement saver listener abstractions.
Use saver listener abstractions.
Have all listeners extend the abstract saver interface.
Refactor file.
Update git ignore file.