Adds automated licencing
exit program more 'properly'