Added FrameEvent and FrameListener so listen to frame closing.