Command Retries option

Added an option that enables the user to set how many times a command
should be retried before failing