error clean up on base