Implemented warning and quick fix for redundant EndContractBlock call.