Refactored and added server GUI - error on close