Added stop method to BackgroundProcess