attempt to fix application close