Cleaned up the onLoadStart handler