javafx Task and closeRequest