few errno checkings for bhyve