close() can now have a $reason argument.