There is no 'Quit' button in the game.
To close the app open the Home Screen as you usually do it.
Or open the Recent apps menu and swipe Farming Fever away.