Return when closing - otherwise we overwrite the function