added end notificitaion code

Can you get the user from context instead?