- Ensure all logging is routed to stderr, never stdout - No extraneous output to stdout except valid MCP protocol messages - Add process event handlers for SIGINT, SIGTERM, and uncaught exceptions to gracefully shut down and flush output - Document shutdown/cleanup behavior