Updated documentation to reflect onclose extra parameters.