link: Test fd >= 0 before close, not fd > 0
core/quit: Close user's link *before* deleting user.
core/squit: Close link properly