fix error on app closing
clean debug strings