(1) Handle trace for unregister. (2) Note that msgs about unhandled trace are just warnings
application:get_application calls process_info so check PID is local