Stock market finishes the day sharply lower