Update PowerManagement.js

Added some basic error reporting