fixed exit error handling, --noTrace option