wrap dispatch_release in check for non-null
Wrap dispatch_release of writeSource in check for non-null
Check timeoutTimer for validity before calling functions with it