Changed getPortNames and getPortStatus to return empty arrays on error instead of false #191