replaced cancel and complete events with close event
package renaming