Make schedule - runScheduled pair exception safe.
Make schedule - runScheduled pair exception safe.

Instead of using schedule/runScheduled actions separately,
because they are exceptions unsafe, we introduce a
`withScheduledAction` function that cares about the safety
by providing correct finalizers.

X-Bug-URL: https://cloud-haskell.atlassian.net/browse/DP-109

aycanirican/network-transport-tcp,hackern/network-transport-tcp,haskell-distributed/network-transport-tcp