Updated the comments for the exit function. Remove the java.io import.