Added bind/listen error catching