Update main.php

Should the error happen before the autoloader is registered