Added error trap during preadv