Issue:#11 Add the close event when the map is closed.