Man taken into custody after standoff in Fredonia