Use defer when it calls Mutex Unlock
Fix RunLoop example
Fixed RunLoop test in the same way as an example
Change ping command loop like a RunLoop example