Basic Service thread set up for the listening of opening and closing.