Fix some close behaviour
Merge pull request #2 from DC37/JavaFX8

Fix some close behaviour