Moved service closure methods

Methods for closing the services are now moved to the AfariaHelper class