Fix session extension error not being sent to STDERR