Add try/catch statement in board.js serialport requirement