closeappwindow ('<Window title name>')
Close application window based on Window title. Returns 1 if success and 0 if unable to close the specified application window.
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/python/ldtputils.py
from ldtputils import *
closeappwindow ('Bug Buddy')