Reverted original close thread

Stopped application crashing occassionally when resuming