add doc and fix coding style
unnecesary try/except in --can-deprovision option