parameterize closing notifications