Enhanced Server Shutdown and Event Loop Management
Overview
This PR refines the shutdown process and event loop management in the ValidatorAPI class to ensure clean exits and proper resource cleanup after server interruptions.
Changes
Graceful Shutdown Handling:
Implemented a try-except block to handle KeyboardInterrupt for graceful server shutdown.
Event Loop Management:
Added a finally block to ensure the event loop is always closed, and reset the event loop to prevent hanging processes.
Enhanced Server Shutdown and Event Loop Management
Overview
This PR refines the shutdown process and event loop management in the ValidatorAPI class to ensure clean exits and proper resource cleanup after server interruptions.
Changes