Hide modal on close, if not cloning

Fix #45