Shutdownjs fix