Socket gets closed on manager/logout