fix(server): properly close flash transport
Merge branch 'pr-1041' into presubmit-stable-pr-1041

Conflicts:
	lib/server.js