#970 parameterize closing notifications