fixes #10 by catching exception