fix notify_exception arguments, remove imports