Close EventSource connection on close