Added gpu not found exception catching.