added close handler in splash