Closes a group referenced by loc_id. Returns a negative value upon failure, otherwise the operation was successful.