Mac

Clean up state or print out debug information just before leaving the scope by defining the defer statement can improve development a lot.