Cleaned up the traceExit call