Nets top Pistons in season closer