added alert close binding, fixed #3