Change createTransport return type.

createTransport can't throw any exception, so
type is changed accordinly.