added end notification code

changed default to true.