power error cleanup