/**
* Closes the window
* @param string $location
* @return void
*/
public function close($location = NULL)
{
$this->storage->remove();
$this->open = FALSE;
if (!$this->presenter->isAjax()) {
if (isset($location)) {
$this->presenter->redirect($location);
} else {
$this->presenter->redirect('this');
}
}
}