added some poll() error handling
removed the daemon module as i won't implement forking into the background.