A class for creating daemons