Add a close timeout to AmqpProvider to prevent hangs on close.
close serializer after close times out or succeeds