with_trace function

Wrapper around 'trace' to untrace when finished