refactor & bugfixes

Small bugfixes, provided reconnection mechanism when pipe brokes...
Moved funcionality of deferred queue managing from RACriticalSection
(refactoring).