Use the close survey API to close a survey from your own code. You typically use it when the survey is embedded inside a dialog with a close button.
To close the survey, use the following code:
satismeter('close')
For a complete example, see http://jsbin.com/puwaker/edit?html,output.