keep references of ports and writers and remove them only after a timeout

The GC can collect them any time after the timeout.

Conflicts:
	lib/rock/webapp/tasks.rb