on-closed callback should be parameterless