Streamline the cleanup of processes after tests