Fixed connection closing and RestApplication.svc in Mono.