Adding an exception handler for vm settings.