Avoid the interruption when no gateway specified