src/connection.c: Clean up message callback functions