Destroy event base if we created it
Destroy event base if we created it

Change-Id: If4b7a54564776c46238c6fbc8047433bd2a6cebc
Reviewed-on: http://review.couchbase.org/13126
Tested-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>
Reviewed-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>

couchbase/libcouchbase,uvenum/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,signmotion/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,mody/libcouchbase,trondn/libcouchbase,senthilkumaranb/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,maxim-ky/libcouchbase,mnunberg/libcouchbase,mnunberg/libcouchbase,uvenum/libcouchbase,mnunberg/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,senthilkumaranb/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,signmotion/libcouchbase,PureSwift/libcouchbase,senthilkumaranb/libcouchbase,senthilkumaranb/libcouchbase,maxim-ky/libcouchbase,signmotion/libcouchbase,trondn/libcouchbase,trondn/libcouchbase,mnunberg/libcouchbase,couchbase/libcouchbase,PureSwift/libcouchbase,PureSwift/libcouchbase,maxim-ky/libcouchbase,avsej/libcouchbase,trondn/libcouchbase,uvenum/libcouchbase,mody/libcouchbase,trondn/libcouchbase,maxim-ky/libcouchbase,avsej/libcouchbase,kojiromike/libcouchbase,PureSwift/libcouchbase,couchbase/libcouchbase,kojiromike/libcouchbase,kojiromike/libcouchbase,mody/libcouchbase,mody/libcouchbase,couchbase/libcouchbase