Fix for close callback fired twice

I basically removed major part of dixso/custombox@df2999b7f363898235644ed370338e6a09df20b9 which introduces this bug.
Close callback is still working for me.