Fixed charts and device gateway not working after refresh by moving call to _synchronizationService.removeEventListener(this); from removeUserData() to close().
Merge remote-tracking branch 'origin/master'