Changed the way error is handled when running player's code