properly cleanup process