Close connection if connection_new callback returns bad code