Fixed some crashing issues when opening/closing quickly and repeatedly