Added method to close thread