Collect the target amount of money by the end of the level. If you don't meet your goal by the end of the level it's game over. Your money carries over from one level to the next.
If you accidentally blow up everything on a level or you just feel like going on, you can press the "Exit Level" button. If you haven't met your level goal it will be game over.