finish edit and destroy