locker: make sure to close the connection on release

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>