[bug fixing] PTSDK-1409

fix power.release() throw wrong error type if parameter's type
mismatching
Merge pull request #164 from zivchang/next

[bug fixing] PTSDK-1409