Refactor start logic such that start and stop profiling logic is symmetric