I have added try-except clauses in order to prevent the process from crashing if a non-parsable integer is used for the api_version option. Signed-off-by: Konrad Reiche <konrad.reiche@fokus.fraunhofer.de>