gpio: [js] try/catch for claim/release