signal handling in the bag