Fix

Added method to atlas daemon for tidying up when closing.