Added possibility to skip double animation on close