Unhandled error

Added handling to inet_aton($host) returning an uninitialized value and modified more error output