Added automatic restarting of classmap.php after possible error.