Error handling for nix and WIndows on geBin method