Re-opening folder in Atom fails

How are you starting Atom? atom foldername or from the context menu?