Fix port forwarding code such that if all local binds fail, an error is returned instead of waiting for an interrupt.