Add option for function called after closeLink is clicked.