Extinction times for a general birth, death and catastrophe process