added checks for runtime exceptions
slight tweaks to javafx mouse manager