Confident that error is about page closing
Added final timeout
Moved unlink to async