Stripped back everything to find cause of unmanaged crash