Software-defined Networking (SDN) is considered a new solution in network provision for applying flexible functionalities. The characteristics of SDN include separated control and data planes, centralized management, having the global view of the network, fast adjustment, and adaptation. However, the centralized management brings resilience issues in the control plane of SDN, such as operation dependability, component survival, and behavior recovery. This paper introduces a resilience design for SDN to prevent network behavior loss when the active controller fails. The aim of this paper is to develop a way to improve the resilience of SDN control message processing during the controller switching procedure. The proposed design has been practiced on RYU controller for verification and evaluation. The initial performance tests show that our work is able to increase the reliability of the controller at the expense of lower performance.