Add more trace points
Remove trailing whitespaces from some files
Do not crash when detaching a process that is already being detached.