Ensure dbg tracer exits when dbg is stopped

Previously the tracer might receive an 'EXIT' message in the trace receive loop and treate it as garbage instead of stopping.

See: http://erlang.org/pipermail/erlang-questions/2014-October/081179.html

/cc @leoliu