Fixed crash bug when signing in and out multiple tutors. logs are now
written out while programming is running instead of when closing.