Fixes return code problem when debugging in eclipse