undo free bsd error handling