properly catches and re-throws exceptions that ocurred during drawing