Hacky auto close..