SingleResultFuture.init just returns silently if future has already been cancelled, instead of throwing.
Fixed some checkstyle errors too.