Added autoclose to AP

Change-Id: I2409af526f67fba5a76ef8b7c7e3bd15cd2c659c
Signed-off-by: Andrey Shamis <lolnik@gmail.com>