Adding missing semicolons
Adding retry logic; improving logging; removing ignore_result option