 Adams was the lone Federalist in Congress to vote for the Non-importation Act of 1806, which was designed to punish Britain for its attacks on American shipping during the ongoing Napoleonic Wars.Adams became increasingly frustrated with the unwillingness of other Federalists to condemn British actions, including impressment, and he moved closer to the Jefferson administration.After Adams supported the Embargo Act of 1807, the Federalist-controlled Massachusetts legislature elected Adams's successor several months before the end of his term and Adams resigned from the Senate shortly thereafter.